package com.party.core.model.crowdfund;

import com.party.core.model.BaseModel;

/**
 * 支持支持转移
 * Created by huangwuming
 * on 2018/5/7/007.
 */
public class SupportTransfer extends BaseModel{
    //资源编号
    private String sourceId ;
    //目标编号
    private String targetId ;
    //目标项目id
    private String targetProId;
    //是否授权(0:否,1:是,2:待审核,3:审核通过,4审核拒绝)
    private int isAuthorized ;

    public String getTargetProId() {
        return targetProId;
    }

    public void setTargetProId(String targetProId) {
        this.targetProId = targetProId;
    }

    public String getSourceId() {
        return sourceId;
    }

    public void setSourceId(String sourceId) {
        this.sourceId = sourceId;
    }

    public String getTargetId() {
        return targetId;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public int getIsAuthorized() {
        return isAuthorized;
    }

    public void setIsAuthorized(int isAuthorized) {
        this.isAuthorized = isAuthorized;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;

        SupportTransfer that = (SupportTransfer) o;

        if (isAuthorized != that.isAuthorized) return false;
        if (sourceId != null ? !sourceId.equals(that.sourceId) : that.sourceId != null) return false;
        return targetId != null ? targetId.equals(that.targetId) : that.targetId == null;

    }

    @Override
    public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + (sourceId != null ? sourceId.hashCode() : 0);
        result = 31 * result + (targetId != null ? targetId.hashCode() : 0);
        result = 31 * result + isAuthorized;
        return result;
    }

    @Override
    public String toString() {
        return "supporTransfer{" +
                "sourceId='" + sourceId + '\'' +
                ", targetId='" + targetId + '\'' +
                ", isAuthorized=" + isAuthorized +
                '}';
    }
}
